package com.state.demo1.impl;

import com.state.demo1.VoteManager;
import com.state.demo1.VoteState;

/**
 * 具体状态类——正常投票
 * 
 * @author Administrator
 *
 */
public class NormalVoteState implements VoteState {

	@Override
	public void vote(String user, String voteItem, VoteManager voteManager) {
		// 正常投票，记录到投票记录中
		voteManager.getMapVote().put(user, voteItem);
		System.out.println("恭喜投票成功");
	}

}
